<template>
  <el-table :data="logData" stripe border>
    <!-- 编号 -->
    <el-table-column type="index" align="center" width="55" />

    <!-- username -->
    <el-table-column label="用户名" align="center" prop="username" />

    <!-- IP -->
    <el-table-column label="IP" align="center" prop="ip" />

    <!-- URL -->
    <el-table-column label="URL" align="center" prop="url" width="100px" />

    <!-- 访问时间 -->
    <el-table-column label="访问时间" align="center" prop="visitTime" width="200px">
      <template v-slot="data">{{ data.row.visitTime | timerFormat }}</template>
    </el-table-column>

    <!-- 执行时间 -->
    <el-table-column label="执行时间" align="center" prop="executionTime" width="100px" />

    <!-- 访问方法 -->
    <el-table-column label="访问方法" align="center" prop="method" width="100px" />

  </el-table>
</template>

<script>
export default {
  props: {
    logData: Array
  }
}
</script>

<style>

</style>